import * as THREE from "three"
import configConst from "../constant/config.const"
import renderOrderEnum from "../enum/renderOrder.enum"
import { PinSelectedMaterial } from "../material/PinMaterial"
export default class PinSelectedMesh extends THREE.Mesh {
  constructor(e) {
    super(
      new THREE.PlaneBufferGeometry(configConst.PlaneBufferGeometryConfg.anchor.size, configConst.PlaneBufferGeometryConfg.anchor.size),
      new PinSelectedMaterial()
    )
    this.visible = !1
    this.layers.mask = e.mask
    this.renderOrder = renderOrderEnum.pinSelectedHalo
  }
}
